<template>
    <div>
        <span>{{label}}：</span>
        <el-input style="width:200px;" v-model="val" :placeholder="palceholder" @change="handleChange"></el-input>
    </div>
</template>

<script>
export default {
    props:["palceholder","defaultVal","label","params"],
    data(){
        return{
            val:""
        }
    },
    created(){
        if(this.defaultVal){
            this.val = this.defaultVal
        }
    },
    mounted(){
     
    },
    methods:{
        handleChange(){
            this.$emit("handleChange",this.params,this.val)
        },
        clear(){
            this.val = ''
        }
    }
}
</script>
